package com.dai.spec.gxk.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 选课数量限制对象 t_spec_course_selection_limit
 *
 * @author daikl
 * @date
 */
@TableName("t_spec_course_selection_limit")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseSelectionLimit implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @NotNull
    private Long id;

    /**
     * 线上公选课选课数量限制
     */
    @NotNull(message = "线上公选课选课数量限制")
    private Integer onlineLimit;

    /**
     * 线下公选课选课数量限制
     */
    @NotNull(message = "线上公选课选课数量限制")
    private Integer offlineLimit;

    /**
     * 公选课总选课数量限制
     */
    @NotNull(message = "公选课总选课数量限制")
    private Integer totalLimit;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;
}
